package com.oversea.util.page;

import java.util.Collection;
import java.util.List;

/**
 * @author Power
 */
public class Result {

	private Page page;

	private Collection content;

	/**
	 * The default constructor
	 */
	public Result() {
		super();
	}

	/**
	 * The constructor using fields
	 * 
	 * @param page
	 *            page object
	 * @param content
	 *            result list
	 */
	public Result(Page page, Collection content) {
		this.page = page;
		this.content = content;
	}

	/**
	 * @return Returns the content.
	 */
	public Collection getContent() {
		return content;
	}

	/**
	 * @return Returns the page.
	 */
	public Page getPage() {
		return page;
	}

	/**
	 * @param content
	 *            The content to set.
	 */
	public void setContent(List content) {
		this.content = content;
	}

	/**
	 * @param page
	 *            The page to set.
	 */
	public void setPage(Page page) {
		this.page = page;
	}
}